<?php 
header("Content-type:text/html;charset=utf-8");
//引入数据库
$db = require 'db.php';


$data = isset($_GET['a'])?$_GET['a']:'index';
$controller = 'controller/'.$data.'.php';
if (is_file($controller)) {
	require $controller;
}else{
	echo "非法请求";
}

?>